<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,maximum-scale=1.0" />
    <title>详情${describe}</title>
${r"<#"}include "/view/admin/head.html"/>





    <style type="text/css">
        .list-path {
            height: 50px;
            line-height: 50px;
            background-color: #9acfea;
        }

        .table-class {
            width: 90%;
            text-align: center;
            border: 1px solid #afd9ee;
            margin: 0 auto;
            margin-top: 50px;
        }

        table th {
            width: 20%;
            background-color: #d9edf7;
            text-align: right;
        }

        table td {
            width: 20%;
            text-align: left;
        }


    </style>
    <script type="text/javascript">

        $(function(){



        });

    </script>
</head>
<body>
${r"<#"}include "/view/admin/listnav.html"/>


<div class="table-class">
${r"<#"}include "/view/admin/opermsg.html"/>
        <table class="table table-bordered">
        <#assign num1=0>
        <#list columnList as var>

            <#if 'hidden'==var.inputType>
                <input type="hidden" style="display: none" name="${var.properties}" value="${r"${"}entity.${var.properties}!${r"}"}"/>

            <#elseif 'text'==var.inputType||'int'==var.inputType||'decimal'==var.inputType>
                <#if num1%2==0><tr></#if>
                <th>${var.describe}</th>
                <td>
                    ${r"${"}entity.${var.properties}!${r"}"}
                </td>
                <#if (num1-1)%2==0||(var_index+1)==columnList?size></tr></#if>
                <#assign num1=num1+1>
            <#elseif 'file'==var.inputType>
                <#if num1%2==0><tr></#if>
                <th>${var.describe}</th>
                <td>
                ${r"<#"}if entity.${var.properties}??&&entity.${var.properties}!=''>
                    <img src="${r"${base}${"}entity.${var.properties}!${r"}"}" height="100px">
                ${r"</#"}if>
                </td>
                <#if (num1-1)%2==0||(var_index+1)==columnList?size></tr></#if>
                <#assign num1=num1+1>
            <#elseif 'date'==var.inputType>
                <#if num1%2==0><tr></#if>
                <th>${var.describe}</th>
                <td>
                    ${r"<#if "}(entity.${var.properties})?? >${r"${"}entity.${var.properties}?string('yyyy-MM-dd HH:mm:ss')${r"}</#if>"}
                </td>
                <#if (num1-1)%2==0||(var_index+1)==columnList?size></tr></#if>
                <#assign num1=num1+1>
            <#elseif 'switch'==var.inputType>
                <#if num1%2==0><tr></#if>
                <th>${var.describe}</th>
                <td>
                    <#list listSwitch as s>
                        <#if s.name==var.properties>
                        ${r"<#"}if entity.display??>
                            <#list s.switch as st>

                                <#if st.value==0>
                                ${r"<#"}if ${st.value}==entity.${var.properties}><span class="label label-default">${st.name}</span>${r"</#"}if>
                                <#elseif st.value==1>
                                ${r"<#"}if ${st.value}==entity.${var.properties}><span class="label label-success">${st.name}</span>${r"</#"}if>
                                </#if>

                            </#list>
                        ${r"</#"}if>
                        </#if>
                    </#list>

                <#if (num1-1)%2==0||(var_index+1)==columnList?size></tr></#if>
                <#assign num1=num1+1>
                </td>
            <#elseif 'select'==var.inputType>
                <#if num1%2==0><tr></#if>
                <th>${var.describe}</th>
                <td>
                    <#list listSelect as s>
                        <#if s.name==var.properties>
                        ${r"<#"}if entity.${var.properties}??>
                            <#if 'int'==var.inputCode||'str'==var.inputCode>
                            ${r"<#list"} list${var.propertiesUp} as lv>
                            ${r"<#if"} lv.value??&&entity.${var.properties} == lv.value >
                            ${r"${"}lv.name!${r"}"}
                            ${r"</#if>"}
                            ${r"</#list>"}
                            <#elseif 'approvestatus'==var.inputCode>
                            ${r"<#if"} entity.${var.properties}??>
                                <#list s.select as st>
                                    <#if st.value==0>
                                    ${r"<#if"} 0==entity.${var.properties}><span class="label label-default">${st.name}</span>
                                    <#elseif st.value==1>
                                    ${r"<#elseif"}   1==entity.${var.properties}><span class="label label-success">${st.name}</span>
                                    <#elseif st.value==2>
                                    ${r"<#elseif"} 2==entity.${var.properties}><span class="label label-danger">${st.name}</span>
                                    </#if>

                                </#list>
                                <#if s.select?size gt 0>
                                ${r"</#if>"}
                                </#if>
                            ${r"</#if>"}
                            <#else>
                                <#list s.select as st>
                                    <#if st_index==0>
                                    ${r"<#"}if entity.${var.properties}==${st.value}>${st.name}
                                    <#else>
                                    ${r"<#"}elseif entity.${var.properties}==${st.value}>${st.name}
                                    </#if>
                                    <#if (st_index+1)==s.select?size>
                                    ${r"</#if>"}
                                    </#if>
                                </#list>
                            </#if>

                        ${r"</#if>"}
                        </#if>
                    </#list>
                </td>
                <#if (num1-1)%2==0||(var_index+1)==columnList?size></tr></#if>
                <#assign num1=num1+1>
            </#if>

        </#list>


            <tr>
                <td colspan="4" width="100%" style="text-align: center;">
                    <a href="${r"${base}"}/${simpleClassname}/add.do?${keyProperties}=${r"${"}entity.${keyProperties}!${r"}"}" class="btn btn-success "  >修改</a>
                    <span style="width: 20px;">&nbsp;</span>
                    <a class="btn btn-danger " href="javascript:window.history.go(-1)">
                        </span>返回</a>
                </td>
            </tr>

        </table>
    </form>




</div>

<script type="text/javascript">

</script>


</body>
</html>
